//
//  TodayDetailCalendarHeadView.swift
//  MoyoungHome
//
//  Created by 易先生 on 2022/9/21.
//

import UIKit
import MYModule

class CalendarHeaderView: UICollectionReusableView {

	override init(frame: CGRect) {
		super.init(frame: frame)
		makeUI()
	}

	required init?(coder: NSCoder) {
		fatalError("init(coder:) has not been implemented")
	}

	private func makeUI() {
		self.backgroundColor = UIColor.background
		self.addSubview(monthLabel)

		monthLabel.snp.makeConstraints { make in
			make.leading.equalToSuperview().offset(18)
			make.centerY.equalToSuperview()
		}


	}

	public func bind(to month: String?) {
		monthLabel.text = month
	}

	private lazy var monthLabel: Label = {
		let monthLabel = Label()
		monthLabel.textColor = UIColor.assist_000000
		monthLabel.font = Fonts.systemFont(ofSize: 20)
		return monthLabel
	}()

}
